GCC = gcc -Werror 
JAVA_INCLUDE = 
INCLUDE_LINUX = -I/usr/lib/jvm/java-7-oracle/include -I/usr/lib/jvm/java-7-oracle/include/linux
INCLUDE_CYGWIN = -I/cygdrive/c/Programs/Java/jdk1.7.0_07/include -I/cygdrive/c/Programs/Java/jdk1.7.0_07/include/win32
SRC = linux/common.c linux/nlablexer.c linux/nlabparser.c linux/nmath.c simplemath-jni.c simplemath.c
LFLAGS = -lm -lpthread

linux32:
	GCC -shared -o ../lib/libnmath.so INCLUDE_LINUX SRC LFLAGS
	
cywin32:
	GCC -shared -o ../lib/libnmath.so INCLUDE_CYGWIN SRC LFLAGS
	
linux64:
	GCC -m64 -shared -o ../lib/libnmath.so INCLUDE_LINUX SRC LFLAGS
	
libnmath64.so:
	$(GCC) -m64 -shared $(INCLUDE_CYGWIN) $(SRC) $(LFLAGS)
